ShortPixel\Controller\AjaxController D

Total Complexity 189
Dependencies 18
Dependents 2
Total lines 1,219
Lines of code 858
Logical lines of code 636
Comment lines 59
Methods 45
Properties 1

Methods 45

Method Rating Maintainability Complexity Lines of code
ajaxRequest()
D
27
36 135
settingsRequest()
A
50 15 28
getComparerData()
A
42 13 49
loadLogFile()
A
41 9 53
checkProcessorKey()
A
47 10 34
getItemView()
A
47 8 36
refreshFolder()
S
47 6 37
applyBulkSelection()
S
47 5 36
startRestoreAll()
S
55 5 19
optimizeItem()
S
54 5 19
reOptimizeItem()
S
55 5 17
checkNonce()
S
57 4 15
browseFolders()
S
58 4 15
getItemEditWarning()
S
58 4 15
ajax_processQueue()
S
58 4 13
checkImageAccess()
S
54 3 23
addCustomFolder()
S
53 3 22
scanNextFolder()
S
57 3 17
removeCustomFolder()
S
56 3 17
getProcessorKey()
S
63 4 10
send()
S
63 4 10
ajax_checkquota()
S
55 2 20
unMarkCompleted()
S
56 2 17
markCompleted()
S
56 2 17
checkActionAccess()
S
58 2 15
cancelOptimize()
S
57 2 15
handleChangeMode()
S
64 3 9
settingsFormSubmit()
S
63 2 12
removeAllData()
S
61 2 12
removeBackup()
S
61 2 12
finishBulk()
S
62 2 11
getInstance()
S
73 2 5
redoLegacy()
S
62 1 11
resetScanFolderChecked()
S
74 1 5
startRemoveLegacy()
S
68 1 7
ajax_getBackupFolderSize()
S
66 1 8
ajax_proposeQuotaUpgrade()
S
69 1 7
startMigrateAll()
S
68 1 7
createBulk()
S
65 1 9
restoreItem()
S
63 1 10
onWpLrSyncMedia()
S
76 1 4
onWpLrUpdateMedia()
S
66 1 8
getMediaItem()
S
75 1 4
recheckActive()
S
68 1 7
startBulk()
S
70 1 6